<template>
<van-index-bar :index-list="dataIndex">
  <template v-for="item in dataIndex">
  <van-index-anchor class="indexPart" :index="item" :key="item"/>
  <van-cell :title="city.name" :key="city.cityId" v-for="city in dataCity[item]" @click="$emit('changecity',city.name,city.cityId)"/>
</template>
</van-index-bar>    
</template>
<script>
export default {
    data(){
        return{
        }
    },
    props:['dataIndex','dataCity']
}
</script>

<style lang="scss" scoped>
.indexPart{
background-color: #f4f4f4;
}

</style>
